﻿<?xml version="1.0" encoding="UTF-8"?>

<ui:composition
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
	xmlns:f="http://xmlns.jcp.org/jsf/core"
	xmlns:h="http://xmlns.jcp.org/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:jsf="http://xmlns.jcp.org/jsf/passthrough"
	template="/WEB-INF/templates/public/default.xhtml"
>

	<f:metadata>

	</f:metadata>
	<ui:define name="head">
		<h:outputScript name="js/download.js" ></h:outputScript>
		<script >
				$(function(){


				var x=new XMLHttpRequest();
				x.open("GET", "http://192.168.124.7/onlineExchange-web/rest/download/attachmentToByte/402881a06002099a016005d1e7f5004f", true);
				x.responseType = 'blob';
				x.onload=function(e){download(x.response, "dlBinAjax.jpg", "image/jpg" ); }
				x.send();
			})
		</script>
	</ui:define>
	<ui:define name="content">
		
	</ui:define>
</ui:composition>
